package com.nintendo.mapper;

import com.nintendo.dto.CategoryDTO;
import com.nintendo.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    public List<Category> findAllByNameAuthPage(CategoryDTO categoryDTO);
    public void saveCategory(Category category);
    public void deleteCategoryById(Long id);
    public void updateCategoryById(Category category);
    public List<Category> findAll();

    public List<Category> findAllByParent(Long parent);
}
